//
//  UIContactsViewController.h
//  TTAddressBook
//
//  Created by wangming on 11-12-28.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIBaseViewController.h"
#import "UICustomTableView.h"
#import "UIPopView.h"
#import "selectContacts.h"
#import "MyClass.h"
#import "define.h"
#import "imagePath.h"
#import "UIShowTimeObjListViewController.h"
#import "detailMessageViewController.h"


@interface UIContactsViewController : UIBaseViewController<UITableViewDataSource, 
                                                            UITableViewDelegate,UIScrollViewDelegate, 
UISearchDisplayDelegate,UISearchBarDelegate,
UIPopViewDelegate,UINavigationControllerDelegate>
{
    NSMutableArray *ContactsList;
    IBOutlet UITableView *tableview;//联系人列表
    IBOutlet UITableView *LefttableView;//组列表
    NSMutableArray *timeObjectArr;	//日程列表
    NSMutableArray *groupNames;//分组名  
    NSInteger Cur_ContactID;//当前联系人id
    NSString* Cur_ContactName;//当前联系人
    BOOL ShowGroup_Flag;//是否显示组   
    UISearchBar *selSearchBar;
	UISearchDisplayController *searchDC;
    NSInteger Cur_GroupID;
    NSString* Cur_GroupName;
    NSString* Cur_GroupType;
    NSInteger startAt;
    NSInteger inOrder; 
    UIView * headerView;
    UISegmentedControl *segCon;
    NSMutableDictionary *personImageDict;
}
@property (nonatomic, retain)  NSMutableDictionary *personImageDict;
@property (nonatomic)NSInteger Cur_GroupID;
@property (nonatomic, retain) NSString *Cur_GroupName;
@property (nonatomic, retain) NSString *Cur_GroupType;
@property (nonatomic)NSInteger Cur_ContactID;
@property (nonatomic,retain)NSString* Cur_ContactName;
@property (nonatomic, retain) NSMutableArray *ContactsList;
@property (nonatomic, retain) NSMutableArray *timeObjectArr;
@property (nonatomic, retain) NSMutableArray *groupNames;
@property (nonatomic, retain) UITableView *tableview;
@property (nonatomic, retain) UITableView *LefttableView;
@property (nonatomic, retain) NSMutableArray    *filteredListContent;
@property (nonatomic) NSInteger                     selectedRowIndex;
@property (nonatomic) NSInteger                     lastSelectedRowIndex;
@property (nonatomic) BOOL              opened;
@property (nonatomic,copy) NSString* strShowName;
- (void) showContactsGroup;
- (void) reloadTableView;
- (void) refreshContactsDate;
- (void) loadImagesForOnscreenRows;
- (void) getgroups;
- (void) getContacts:(NSInteger)type;
- (void) btnTimeObj:(id)sender;
- (void) btnSendSms:(id)sender;
- (void) btnShowSms:(id)sender;
@end
